package snowflake.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import snowflake.demo.service.snowflakeservice;

import javax.annotation.Resource;

@RestController
@RequestMapping("/snowflake")
public class snowflakecontroller {
    @Resource
    private snowflakeservice snowflakeservice;
    
    @RequestMapping("/getId")
    public String getId() {
        return snowflakeservice.getId().toString();
    }
}
